#pragma once
#include "UltimateOpenALPrecompiled.h"
#include "UltimateOpenAL.h"
#include <OgreRoot.h>
 

class UltimateOpenAL;
//global variable
UltimateOpenAL* myPlugin;
 
//-----------------------------------------------------------------------
extern "C" void _UltimateOpenALExport dllStartPlugin(void)
{
  // Create plugin
  myPlugin = new UltimateOpenAL();
 
  // Register
  Ogre::Root::getSingleton().installPlugin(myPlugin);
}
extern "C" void _UltimateOpenALExport dllStopPlugin(void)
{
  Ogre::Root::getSingleton().uninstallPlugin(myPlugin);
  delete myPlugin;
}